import request from '@/utils/request'

// 查询显示端信息列表
export function listDisplay(query) {
  return request({
    url: '/manage/display/list',
    method: 'get',
    params: query
  })
}

// 查询显示端信息详细
export function getDisplay(displayId) {
  return request({
    url: '/manage/display/' + displayId,
    method: 'get'
  })
}

// 新增显示端信息
export function addDisplay(data) {
  return request({
    url: '/manage/display',
    method: 'post',
    data: data
  })
}

// 修改显示端信息
export function updateDisplay(data) {
  return request({
    url: '/manage/display',
    method: 'put',
    data: data
  })
}

// 删除显示端信息
export function delDisplay(displayId) {
  return request({
    url: '/manage/display/' + displayId,
    method: 'delete'
  })
}
